<ion-header-bar class="bar-top text-center">
    <div class="buttons">
        <nav-button class="back" ng-click="back()"></nav-button>
    </div>
    <h1 class="title">个人信息</h1>
</ion-header-bar>
<ion-view>
    <ion-content class="user-info" has-bouncing="false">
        <div class="head-div">
        	<div class="avata" ng-click="getAvatar()">
		        <img  ng-src="{{downloadImg(vm.user.headImgUrl)}}" />
        	</div>
        </div>
        <div class="input-div">
            <div class="ipt-item row">
                <div class="col col-33 title">真实姓名</div>
                <div class="col col-67">
                    <input type="text" ng-show="vm.edit" ng-model="vm.user.name" />
                    <label class="view-text" ng-show="!vm.edit" ng-bind="vm.user.name"></label>
                </div>
            </div>
            <div class="ipt-item row">
                <div class="col col-33 title">性&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;别</div>
                <div class="col col-33">
                    <input class="radio" type="radio" name="sex" ng-value="1"  ng-model="vm.user.sex" checked="checked" /><i>男</i>
                </div>
                <div class="col col-33">
                    <input class="radio" type="radio" name="sex" ng-value="0" ng-model="vm.user.sex"/><i>女</i>
                </div>
            </div>
            <div class="ipt-item row">
                <div class="col col-33 title">Q&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Q</div>
                <div class="col col-67">
                    <input type="text" ng-show="vm.edit" ng-show="vm.edit" ng-model="vm.user.qq" />
                    <label class="view-text" ng-show="!vm.edit" ng-bind="vm.user.qq"></label>
                </div>
            </div>
            <div class="ipt-item row">
                <div class="col col-33 title">邮&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;箱</div>
                <div class="col col-67">
                    <input type="text" ng-show="vm.edit" ng-show="vm.edit" ng-model="vm.user.email" />
                    <label class="view-text" ng-show="!vm.edit" ng-bind="vm.user.email"></label>
                </div>
            </div>
            <div class="ipt-item row">
                <div class="col col-33 title">现居地址</div>
                <div class="col col-67">
                    <input type="text" ng-show="vm.edit" ng-model="vm.user.address" />
                    <label class="view-text" ng-show="!vm.edit" ng-bind="vm.user.address"></label>
                </div>
            </div>
        </div>
        <div class="input-div">
            <div class="ipt-item row">
                <div class="col col-33 title">单位名称</div>
                <div class="col col-67">
                    <input type="text" ng-show="vm.edit"  ng-model="vm.user.company"/>
                    <label class="view-text" ng-show="!vm.edit" ng-bind="vm.user.company"></label>
                </div>
            </div>
            <div class="ipt-item row">
                <div class="col col-33 title">职&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;位</div>
                <div class="col col-67">
                    <input type="text" ng-show="vm.edit" ng-model="vm.user.position"/>
                    <label class="view-text" ng-show="!vm.edit" ng-bind="vm.user.position"></label>
                </div>
            </div>
            <div class="ipt-item row">
                <div class="col col-33 title">既往病史</div>
                <div class="col col-67">
                    <textarea ng-show="vm.edit" ng-model="vm.user.history"></textarea>
                    <label class="view-text" ng-show="!vm.edit" ng-bind="vm.user.history"></label>
                </div>
            </div>
        </div>

        <div class="button-submit" ng-show="!vm.edit" ng-click="vm.edit=true">修改</div>
        <div class="button-submit" ng-show="vm.edit" ng-click="save();">完成</div>
    </ion-content>
</ion-view>